{template 'public/header'}
{template 'public/comhead'}

<script type="text/javascript" src="../addons/weisrc_dish/plugin/poster/jquery.form.js"></script>
<script src="../addons/weisrc_dish/plugin/poster/designer.js" type="text/javascript"></script>
<script src="../addons/weisrc_dish/plugin/poster/jquery.contextMenu.js" type="text/javascript"></script>
<link href="../addons/weisrc_dish/plugin/poster/jquery.contextMenu.css" rel="stylesheet">
<link href="../addons/weisrc_dish/plugin/poster/poster.css" rel="stylesheet">

<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
    <div class='panel panel-default'>
        <div class='panel-heading'>
            小程序设置
        </div>
        <div class='panel-body'>
            {if $sysaccount['type'] != 4}
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">当前公众号ID</label>
                <div class="col-sm-9 col-xs-12">
                    <p class="form-control-static">
                        {$_W['uniacid']}
                    </p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">AppID(小程序ID)</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" id="wxappid" name="wxappid" class="form-control" value="{$wxsetting['wxappid']}"/>
                </div>
            </div>
            {/if}
            {if $sysaccount['type'] == 4}
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">小程序顶部标题</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" id="bartitle" name="bartitle" class="form-control" value="{$wxsetting['bartitle']}"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">绑定公众号ID</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" id="wxappweid" name="wxappweid" class="form-control" value="{$wxsetting['wxappweid']}"/>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">绑定门店ID</label>
                <div class="col-sm-9 col-xs-12">
                    <input type="text" id="storeid" name="storeid" class="form-control" value="{$wxsetting['storeid']}"/>
                    <div class="help-block">申请小程序审核时使用</div>
                </div>
            </div>
            {/if}
        </div>
    </div>
    <input type="hidden" name="data" value=""/>
    <div class="form-group col-sm-12">
        <input type="submit" name="submit" value="保存设置" class="btn btn-primary col-lg-3" />
        <input type="hidden" name="token" value="{$_W['token']}" />
    </div>
    </form>
</div>
<style>
    .footer{
        height: 100%;
    }
</style>
{template 'public/footer'}